package com.zr.plant.service;

import com.zr.plant.pojo.*;
import com.zr.util.AllRecords;
import com.zr.util.ResultVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Created by 86151 on 2019/6/14.
 */
public interface PlantService {
    ResultVo addPlant(List<PlantAddVo> plantAddVoList);
    ResultVo updatePlant(PlantUpdateVo plantUpdateVo);
    ResultVo updateStatus(PlantStatusVo plantStatusVo);
    ResultVo<List<Legalperson>> queryDown(Integer uid);
    ResultVo<PlantClass> queryPlantById(Integer id);
//    ResultVo<PlantClass> queryPlanClassById(Integer id);
    ResultVo<AllRecords> queryPage(PlantSelectVo plantSelectVo);
    ResultVo<List<LegalPersonResultVo>> ofCurrentUser();

    ResultVo importPlanClass(MultipartFile file)throws Exception;

    ResultVo exportExcel(HttpServletResponse resp, PlantSelectVo plantSelectVo) throws Exception;
}
